package com.kf.mapper;

import com.kf.pojo.TreePerm;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author 康峰
 * @since 2022-10-20
 */
@Repository
@Mapper
public interface TreePermMapper extends BaseMapper<TreePerm> {

    List<TreePerm> findAllParentByid(int id);
    List<TreePerm> findAllChildrenTreeByid(int id);
    void deleteByIdtree(int id);
    void deleteByDeleted(int deleted);
}
